<section class="sidebar">
    <!-- Sidebar user panel -->
    <div class="user-panel">
        <div class="pull-left image">
            <img src="<?php echo Router::url('/', true); ?>img/avatar3.png" class="img-circle" alt="User Image" />
        </div>
        <div class="pull-left info">
            <?php $user =  $this->Session->read('Auth.User'); ?>
            <p><?php echo __('Hello') ?>, <?php echo ucwords($user['username']) ?></p>
            <a href="#"><i class="fa fa-circle text-success"></i><?php echo __('Online') ?></a>
        </div>
    </div>
    <!-- search form -->
    
    <!-- /.search form -->
    <!-- sidebar menu: : style can be found in sidebar.less -->
    <ul class="sidebar-menu">
        <li class="<?php echo $this->name == 'Dashboard' ? 'active' : '' ?>">
            <?php echo $this->Html->link('<i class="fa fa-dashboard"></i> <span>'.__('Dashboard').'</span>',array('controller' => 'dashboard','action' => 'index'),array('escape'=>false)) ?>
        </li>
        <li class="treeview <?php echo $this->name == 'Video' ? 'active' : '' ?>">
            <a href="#">
                <i class="fa fa-play-circle"></i>
                <span><?php echo __('Video') ?></span>
                <i class="fa fa-angle-left pull-right"></i>
            </a>
            <ul class="treeview-menu">
                <li class="<?php echo in_array($this->action,array('index')) ? 'active' : '' ?>">
                    <?php echo $this->Html->link('<i class="fa fa-angle-double-right"></i>'.__('Video List'),array('controller' => 'video','action' => 'index'),array('escape'=>false)) ?>
                </li>
                <li class="<?php echo in_array($this->action,array('upload')) ? 'active' : '' ?>">
                    <?php echo $this->Html->link('<i class="fa fa-angle-double-right"></i>'.__('Video Upload'),array('controller' => 'video','action' => 'upload'),array('escape'=>false)) ?>
                </li>
                <li class="<?php echo in_array($this->action,array('bulkupload')) ? 'active' : '' ?>">
                    <?php echo $this->Html->link('<i class="fa fa-angle-double-right"></i>'.__('Video Bulk Upload'),array('controller' => 'video','action' => 'bulkupload'),array('escape'=>false)) ?>
                </li>
                <li class="<?php echo in_array($this->action,array('status')) ? 'active' : '' ?>">
                    <?php echo $this->Html->link('<i class="fa fa-angle-double-right"></i>'.__('Video Status'),array('controller' => 'video','action' => 'status'),array('escape'=>false)) ?>
                </li>
                <li class="<?php echo in_array($this->action,array('setting')) ? 'active' : '' ?>">
                    <?php echo $this->Html->link('<i class="fa fa-angle-double-right"></i>'.__('Video Settings'),array('controller' => 'video','action' => 'setting'),array('escape'=>false)) ?>
                </li>
            </ul>
        </li>
        <li class="treeview <?php echo $this->name == 'Utility' ? 'active' : '' ?>">
            <a href="#">
                <i class="fa fa-laptop"></i>
                <span><?php echo __('Utility') ?></span>
                <i class="fa fa-angle-left pull-right"></i>
            </a>
            <ul class="treeview-menu">
                <li class="<?php echo in_array($this->action,array('category','categoryopr')) ? 'active' : '' ?>">
                    <?php echo $this->Html->link('<i class="fa fa-angle-double-right"></i>'.__('Category'),array('controller' => 'utility','action' => 'category'),array('escape'=>false)) ?>
                </li>
                <li class="<?php echo in_array($this->action,array('flavor','flavoropr')) ? 'active' : '' ?>">
                    <?php echo $this->Html->link('<i class="fa fa-angle-double-right"></i>'.__('Flavors'),array('controller' => 'utility','action' => 'flavor'),array('escape'=>false)) ?>
                </li>
            </ul>
        </li>
    </ul>
</section>